package com.wx.chapter11.enum_;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/6/13 - 9:40
 */
public class Enumeration03 {
    public static void main(String[] args) {
        System.out.println(Season2.SPRING);
        Season2 spring1 = Season2.SPRING;
        Season2 spring2 = Season2.SPRING;
        System.out.println(spring1 == spring2);
    }
}

enum Season2 {

    SPRING("春天", "温暖"), WINTER("冬天", "寒冷"), AUTUMN("秋天", "凉爽"),
    SUMMER("夏天", "炎热");
    private String name;
    private String desc;

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }

    Season2(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

//    @Override
//    public String toString() {
//        return "Season2{" +
//                "name='" + name + '\'' +
//                ", desc='" + desc + '\'' +
//                '}';
//    }
//
}